import Vue from 'vue'
import Router from 'vue-router'


import index from '@/view/index'
import hot from '@/view/hot'
import soccer from '@/view/soccer'
import basketball from '@/view/basketball'
import funny from '@/view/funny'
import login from '@/view/login'
import register from '@/view/register'

import pay from '@/view/pay_money'
import pay_detail from '@/view/pay_detail'
import prize from '@/view/prize'

import record from '@/view/record'
import guessing from '@/view/record_guessing'
import redeem from '@/view/record_redeem'
import recharge from '@/view/record_recharge'


import information from '@/view/information'
import bindbank from '@/view/bind_bank'
import applymoney from '@/view/apply_money'

import every_color from '@/view/every_color'

import help from '@/view/help'



import user from '@/view/user'

import detail from '@/view/detail'

import nearlyThree from '@/view/nearlyThree'

import store from '../store'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/index',
      meta: {
        noPageAnimation: true,
        showleft:false
      },
    },{
      path: '/index',
      name:'首页',
      component: index,
      meta: {
        noPageAnimation: false,
        showleft:false
      },
    },{
      path: '/hot',
      name:'财经竞猜',
      component: hot,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{
      path: '/soccer',
      name:'足球竞猜',
      component: soccer,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{
      path: '/basketball',
      name:'篮球竞猜',
      component: basketball,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{
      path: '/funny',
      name:'趣味竞猜',
      component: funny,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{
      path: '/nearlyThree',
      name:'易快三',
      component: nearlyThree,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
      
    },{
      path: '/every_color',
      name:'时时彩',
      component: every_color,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{
      path: '/user',
      name:'我的',
      component: user,
      meta: {
        noPageAnimation: false,
        showleft:false
      },
    },{
      path: '/pay',
      name:'充值',
      component: pay,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{
      path: '/applymoney',
      name:'提现',
      component: applymoney,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{//pay_detail
      path: '/pay_detail',
      name:'充值中心',
      component: pay_detail,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{
      path: '/prize',
      name:'奖品兑换',
      component: prize,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{
      path: '/record',
      component: record,
      redirect: '/record/guessing',
      children:[{
        path: '/record/guessing',
        name:'竞猜记录',
        component: guessing,
        meta: {
          noPageAnimation: true,
          showleft:true
        },
      },{
        path: '/record/redeem',
        name:'兑奖记录',
        component: redeem,
        meta: {
          noPageAnimation: true,
          showleft:true
        },
      },{
        path: '/record/recharge',
        name:'充值记录',
        component: recharge,
        meta: {
          noPageAnimation: true,
          showleft:true
        },
      }]
    },{
      path: '/information',
      name:'实名认证',
      component: information,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{
      path: '/bindbank',
      name:'绑定银行卡',
      component: bindbank,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{
      path: '/help',
      name:'帮助',
      component: help,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{
      path: '/login',
      name:'登录',
      component: login,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    },{
      path: '/register',
      name:'注册',
      component: register,
      meta: {
        noPageAnimation: true,
        showleft:true
      },
    }
  ]
})
